package cn.jeeweb.modules.client.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.jeeweb.core.common.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import cn.jeeweb.modules.sys.entity.User;
import java.util.Date;

/**   
 * @Title: 订单任务
 * @Description: 订单任务
 * @author zhuht
 * @date 2018-04-14 17:15:47
 * @version V1.0   
 *
 */
@TableName("client_task")
@SuppressWarnings("serial")
public class Task extends AbstractEntity<String> {

    /**字段主键*/
    @TableId(value = "id", type = IdType.UUID)
	private String id;
    /**创建者*/
    @TableField(value = "create_by",el="createBy.id",fill = FieldFill.INSERT)
	private User createBy;
    /**创建时间*/
    @TableField(value = "create_date",fill = FieldFill.INSERT)
	private Date createDate;
    /**更新者*/
    @TableField(value = "update_by",el="updateBy.id",fill = FieldFill.UPDATE)
	private User updateBy;
    /**更新时间*/
    @TableField(value = "update_date",fill = FieldFill.UPDATE)
	private Date updateDate;
    /**删除标记（0：正常；1：删除）*/
    @TableField(value = "del_flag")
	private String delFlag;
    /**备注信息*/
    @Excel(name="城市合伙人姓名")
    @TableField(value = "remarks")
	private String remarks;
    /**链接*/
    @TableField(value = "link")
	private String link;
	/**店铺id*/
	@TableField(value = "shop_id")
	private String shopId;
    /**店铺名*/
    @Excel(name="店铺名称")
    @TableField(value = "shop_name")
	private String shopName;
    /**标题*/
    @Excel(name="客单价备注")
    @TableField(value = "title")
	private String title;
    /**大图*/
    @Excel(name="主图",type = 2 ,width = 40 , height = 20,imageType = 1,savePath = "/home/application/laoke/upload/excel")
    @TableField(value = "img_url")
	private String imgUrl;
    /**sku*/
    @TableField(value = "sku")
	private String sku;
    /**关键字*/
	@Excel(name="搜索关键词1")
    @TableField(value = "keyword")
	private String keyword;
	/**关键字*/
	@Excel(name="搜索关键词2")
	@TableField(value = "keyword2")
	private String keyword2;
	/**关键字*/
	@Excel(name="搜索关键词3")
	@TableField(value = "keyword3")
	private String keyword3;
	/**关键字*/
	@Excel(name="搜索关键词4")
	@TableField(value = "keyword4")
	private String keyword4;
	/**关键字*/
	@Excel(name="搜索关键词5")
	@TableField(value = "keyword5")
	private String keyword5;
    /**类型*/
    @TableField(value = "type")
	private String type;
    /**购买件数*/
    @TableField(value = "buy_count")
	private Integer buyCount;
    /**订单数量*/
    @Excel(name="任务数量")
    @TableField(value = "order_count")
	private Integer orderCount;
    /**宝贝所在位置*/
    @TableField(value = "page")
	private Integer page;
    /**第几个*/
    @TableField(value = "index")
	private Integer index;
    /**价格*/
    @Excel(name="客单价(元)")
    @TableField(value = "price")
	private Double price;
    /**优惠券链接*/
    @Excel(name="筛选条件")
    @TableField(value = "offer_link")
	private String offerLink;
    /** 所属用户 */
    @TableField(value = "user_id")
    private String userId;
    /** 总价 */
    @TableField(value = "total_price")
    private Double totalPrice;
    /** 本金 */
    @TableField(value = "base_price")
    private Double basePrice;
    /** 总佣金 */
    @TableField(value = "commission_price")
    private Double commissionPrice;
    /** 任务状态 */
    @TableField(value = "status")
    private Integer status;
    /**产品名*/
    @TableField(value = "product_name")
	private String productName;
    
    /** 单位佣金 */
    @TableField(value = "base_commission_price")
    private Double baseCommissionPrice;

    @Excel(name="客户名称")
	@TableField(value = "user_name")
    private String userName;
	
	/**
	 * 获取  id
	 *@return: String  字段主键
	 */
	public String getId(){
		return this.id;
	}

	/**
	 * 设置  id
	 *@param: id  字段主键
	 */
	public void setId(String id){
		this.id = id;
	}
	/**
	 * 获取  createBy
	 *@return: User  创建者
	 */
	public User getCreateBy(){
		return this.createBy;
	}

	/**
	 * 设置  createBy
	 *@param: createBy  创建者
	 */
	public void setCreateBy(User createBy){
		this.createBy = createBy;
	}
	/**
	 * 获取  createDate
	 *@return: Date  创建时间
	 */
	public Date getCreateDate(){
		return this.createDate;
	}

	/**
	 * 设置  createDate
	 *@param: createDate  创建时间
	 */
	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}
	/**
	 * 获取  updateBy
	 *@return: User  更新者
	 */
	public User getUpdateBy(){
		return this.updateBy;
	}

	/**
	 * 设置  updateBy
	 *@param: updateBy  更新者
	 */
	public void setUpdateBy(User updateBy){
		this.updateBy = updateBy;
	}
	/**
	 * 获取  updateDate
	 *@return: Date  更新时间
	 */
	public Date getUpdateDate(){
		return this.updateDate;
	}

	/**
	 * 设置  updateDate
	 *@param: updateDate  更新时间
	 */
	public void setUpdateDate(Date updateDate){
		this.updateDate = updateDate;
	}
	/**
	 * 获取  delFlag
	 *@return: String  删除标记（0：正常；1：删除）
	 */
	public String getDelFlag(){
		return this.delFlag;
	}

	/**
	 * 设置  delFlag
	 *@param: delFlag  删除标记（0：正常；1：删除）
	 */
	public void setDelFlag(String delFlag){
		this.delFlag = delFlag;
	}
	/**
	 * 获取  remarks
	 *@return: String  备注信息
	 */
	public String getRemarks(){
		return this.remarks;
	}

	/**
	 * 设置  remarks
	 *@param: remarks  备注信息
	 */
	public void setRemarks(String remarks){
		this.remarks = (remarks==null?"":remarks);
	}
	/**
	 * 获取  link
	 *@return: String  链接
	 */
	public String getLink(){
		return this.link;
	}

	/**
	 * 设置  link
	 *@param: link  链接
	 */
	public void setLink(String link){
		this.link = (link==null?"":link);
	}
	/**
	 * 获取  shopName
	 *@return: String  店铺名
	 */
	public String getShopName(){
		return this.shopName;
	}

	/**
	 * 设置  shopName
	 *@param: shopName  店铺名
	 */
	public void setShopName(String shopName){
		this.shopName = (shopName==null?"":shopName.trim());
	}
	/**
	 * 获取  title
	 *@return: String  标题
	 */
	public String getTitle(){
		return this.title;
	}

	/**
	 * 设置  title
	 *@param: title  标题
	 */
	public void setTitle(String title){
		this.title = (title==null?"":title);
	}
	/**
	 * 获取  imgUrl
	 *@return: String  大图
	 */
	public String getImgUrl(){
		return this.imgUrl;
	}

	/**
	 * 设置  imgUrl
	 *@param: imgUrl  大图
	 */
	public void setImgUrl(String imgUrl){
		this.imgUrl = imgUrl;
	}
	/**
	 * 获取  sku
	 *@return: String  sku
	 */
	public String getSku(){
		return this.sku;
	}

	/**
	 * 设置  sku
	 *@param: sku  sku
	 */
	public void setSku(String sku){
		this.sku = sku;
	}
	/**
	 * 获取  keyword
	 *@return: String  关键字
	 */
	public String getKeyword(){
		return this.keyword;
	}

	/**
	 * 设置  keyword
	 *@param: keyword  关键字
	 */
	public void setKeyword(String keyword){
		this.keyword = (keyword==null?"":keyword);
	}
	/**
	 * 获取  type
	 *@return: String  类型
	 */
	public String getType(){
		return this.type;
	}

	/**
	 * 设置  type
	 *@param: type  类型
	 */
	public void setType(String type){
		this.type = type;
	}
	/**
	 * 获取  buyCount
	 *@return: Integer  购买件数
	 */
	public Integer getBuyCount(){
		return this.buyCount;
	}

	/**
	 * 设置  buyCount
	 *@param: buyCount  购买件数
	 */
	public void setBuyCount(Integer buyCount){
		this.buyCount = buyCount;
	}
	/**
	 * 获取  orderCount
	 *@return: Integer  订单数量
	 */
	public Integer getOrderCount(){
		return this.orderCount;
	}

	/**
	 * 设置  orderCount
	 *@param: orderCount  订单数量
	 */
	public void setOrderCount(Integer orderCount){
		this.orderCount = orderCount;
	}
	/**
	 * 获取  page
	 *@return: Integer  宝贝所在位置
	 */
	public Integer getPage(){
		return this.page;
	}

	/**
	 * 设置  page
	 *@param: page  宝贝所在位置
	 */
	public void setPage(Integer page){
		this.page = page;
	}
	/**
	 * 获取  index
	 *@return: Integer  第几个
	 */
	public Integer getIndex(){
		return this.index;
	}

	/**
	 * 设置  index
	 *@param: index  第几个
	 */
	public void setIndex(Integer index){
		this.index = index;
	}
	/**
	 * 获取  price
	 *@return: Double  价格
	 */
	public Double getPrice(){
		return this.price;
	}

	/**
	 * 设置  price
	 *@param: price  价格
	 */
	public void setPrice(Double price){
		this.price = price;
	}
	/**
	 * 获取  offerLink
	 *@return: String  优惠券链接
	 */
	public String getOfferLink(){
		return this.offerLink;
	}

	/**
	 * 设置  offerLink
	 *@param: offerLink  优惠券链接
	 */
	public void setOfferLink(String offerLink){
		this.offerLink = (offerLink==null?"":offerLink);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Double getBasePrice() {
		return basePrice;
	}

	public void setBasePrice(Double basePrice) {
		this.basePrice = basePrice;
	}

	public Double getCommissionPrice() {
		return commissionPrice;
	}

	public void setCommissionPrice(Double commissionPrice) {
		this.commissionPrice = commissionPrice;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	/**
	 * 获取  productName
	 *@return: String  产品名
	 */
	public String getProductName(){
		return this.productName;
	}

	/**
	 * 设置  productName
	 *@param: productName  产品名
	 */
	public void setProductName(String productName){
		this.productName = productName;
	}

	public Double getBaseCommissionPrice() {
		return baseCommissionPrice;
	}

	public void setBaseCommissionPrice(Double baseCommissionPrice) {
		this.baseCommissionPrice = baseCommissionPrice;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = (shopId==null?"":shopId);
	}

	public String getKeyword2() {
		return keyword2;
	}

	public void setKeyword2(String keyword2) {
		this.keyword2 = (keyword2==null?"":keyword2);
	}

	public String getKeyword3() {
		return keyword3;
	}

	public void setKeyword3(String keyword3) {
		this.keyword3 = (keyword3==null?"":keyword3);
	}

	public String getKeyword4() {
		return keyword4;
	}

	public void setKeyword4(String keyword4) {
		this.keyword4 = (keyword4==null?"":keyword4);
	}

	public String getKeyword5() {
		return keyword5;
	}

	public void setKeyword5(String keyword5) {
		this.keyword5 = (keyword5==null?"":keyword5);
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = (userName==null?"":userName.trim());
	}
}
